<%@ page contentType="text/html;charset=UTF-8"%>
<%@include file="/static/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>exam</title>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="Cache-Control" content="no-store"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<%@include file="/static/common/cssAndJs.jsp"%>
<script type="text/javascript">

</script>
</head>

<body>
<script type="text/javascript">
var username = "${userkey}";
if(username != ""){
	window.location='${ctx}' + "/index.action";
}
</script>
<div class="logo" style="min-height: 180px;"></div>
<div style="margin: 0 auto; width: 480px;">
	<form class="form-horizontal" action="${ctx }/login.action" method="post">
	  <legend>登入</legend>
	  <c:if test="${message != null}" var="visits">
		  <div class="alert alert-error">
	        <button type="button" class="close" data-dismiss="alert">×</button>
	        ${ message }
	      </div>
	  </c:if>

	  <div class="control-group">
	    <label class="control-label" for="inputEmail" >用户名</label>
	    <div class="controls">
	      <input type="text" id="inputEmail" name="username" placeholder="用户名">
	    </div>
	  </div>
	  <div class="control-group">
	    <label class="control-label" for="inputPassword" >密码</label>
	    <div class="controls">
	      <input type="password" id="inputPassword" name="password" placeholder="密码">
	    </div>
	  </div>
	  <div class="control-group">
	    <div class="controls">
	      
	      <button type="submit" class="btn" style="float: left;">登 入</button>
	      <label class="checkbox" style="float: left; margin-left: 20px; margin-top: 10px; ">
	        <input type="checkbox"> 记住密码
	      </label>
	    </div>
	  </div>
	  <legend></legend>
	</form>
</div>
</body>
</html>